package com.websocketdemo.demo.WebSocket.web.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class pageController {
    int i = 0;
    @RequestMapping("login")
    public String login(){
        System.out.println(++i);
//        System.out.println(username);
//
//        System.out.println(password);
        return "index.html";
    }
    @RequestMapping("main")
    public String main(){
        return "main.html";
    }
    @RequestMapping("register")
    public String register(){
        return "register.html";
    }
    @RequestMapping("reset-password")
    public String rese_password(){
        return "reset-password.html";
    }
    @RequestMapping("error_page")
    public String error(){
        return "error.html";
    }
//    @RequestMapping("yanzheng")
//    public String yanzheng(){
//        return "index.html";
//    }
}
